package com.woniu.repaircenter.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.exception.XinanException;
import com.woniu.repaircenter.models.dto.RepairMaterialDTO;
import com.woniu.repaircenter.models.param.AddRepairMaterialParam;
import com.woniu.repaircenter.service.model.RepairMaterial;

import java.util.List;

/**
 * <p>
 * 维修材料表 服务类
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
public interface RepairMaterialService extends IService<RepairMaterial> {
    Integer addRepairMaterial(List<AddRepairMaterialParam> addRepairMaterialParams,String userName)throws Exception;
    Integer updateRepairMaterial(List<AddRepairMaterialParam> addRepairMaterialParams,String userName)throws Exception;

    List<RepairMaterialDTO> selectAll(String materialCode)throws XinanException;

    List<RepairMaterialDTO> selectByRepairNum(String repairNum);
}
